package javase_01_jvm.se_jvm_ref_pass_value;

/**
 * Package Name:javase_01_jvm.se_jvm_ref_pass_value
 * Description: That's the purpose of the file
 * Date:2016/9/6 14:05
 * Copyright (c) 2016, zhongmu@suneee.com All Rights Reserved.
 */
public class User {

    private String age ;

    public void getGirlAge(User user){
        user.setAge("18");
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public static void main(String[] args) {
        User user = new User();//创建一个user对象
        user.setAge("20");//设置年龄
        user.getGirlAge(user);//调用
        System.out.println(user.getAge());
    }
}
